package xiaomogu.task_engine.admin.core.trigger;

import xiaomogu.task_engine.admin.core.util.I18nUtil;


public enum TriggerType {

    MANUAL(I18nUtil.getString("jobconf_trigger_type_manual")),
    CRON(I18nUtil.getString("jobconf_trigger_type_cron")),
    RETRY(I18nUtil.getString("jobconf_trigger_type_retry")),
    PARENT(I18nUtil.getString("jobconf_trigger_type_parent")),
    API(I18nUtil.getString("jobconf_trigger_type_api")),
    MISFIRE(I18nUtil.getString("jobconf_trigger_type_misfire"));

    private String title;

    private TriggerType(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

}
